import request from '../utils/request'

// 获取所有游戏列表
export const getGameListService = () => request.get('/games')

// 搜索游戏
export const searchGameService = (data) => {
  return request.get(`/games/search?game_name=${data.game_name}&category=${data.category}`, data)
}

// 获取审批通过的游戏列表，spzt=1
export const getApprovedGameListService = () => request.get('/games/spzt/1') 